package com.aaa.service.impl;

import com.aaa.commen.domain.ContractStatus;
import com.aaa.commen.entity.Result;
import com.aaa.mapper.ContractStatusMapper;
import com.aaa.service.IContractStatusService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-02-23
 */
@Service
public class ContractStatusServiceImpl extends ServiceImpl<ContractStatusMapper, ContractStatus> implements IContractStatusService {

    @Autowired
    private ContractStatusMapper contractStatusMapper;

    /**
     * 查询合同状态(下拉框选项)
     * @return
     */
    @Override
    public Result queryContractStatus() {
        List<ContractStatus> contractStatuses = contractStatusMapper.selectList(null);
        return Result.success(contractStatuses);
    }
}
